import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'
import area from './modules/area'
import permission from './modules/permission'
import rolePermission from './modules/role-permission'
import enhance from './modules/enhance'
import online from './modules/online'
import getters from './getters'
import member from './modules/member'
import account from './modules/account'
import merchant from './modules/merchant'
import evaluationAgency from './modules/evaluation-agency'
import allianceMember from './modules/alliance-member'
import platformVisit from './modules/platform-visit'
import goodsDetailVisit from './modules/goods-detail-visit'
import backendVisit from './modules/backend-visit'
import order from './modules/order'
import client from './modules/client'
import onlineUser from './modules/online-user'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    area,
    permission,
    rolePermission,
    enhance,
    online,
    member,
    merchant,
    evaluationAgency,
    allianceMember,
    platformVisit,
    goodsDetailVisit,
    backendVisit,
    client,
    onlineUser,
    order,
    account
  },
  state: {},
  mutations: {},
  actions: {},
  getters
})

